package com.yeyixiao.blog.dao;

import com.yeyixiao.blog.domain.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentDao {
    public List<Comment> getByArticle(Long id);
    public void create(Comment entity);
    public void update(Comment entity);
    public void delete(Comment entity);
    public Comment getById(Long id);
    public List<Integer> getNewComments();
}
